﻿@model  ClarizenGadget.Models.CreateRisk
@{
    Layout = "/Views/Shared/CreateLayout.cshtml";
    ViewBag.Title = "Create Bug";
}   
<div class="Bug">
    <div class="HeaderContainer">
        <div class="TaskHeader">
            <img src="@(Logic.Constants.CurrentUrl)/Images/icons/ico-bug-32px.png" class="Icon TaskIcon"/>
            <div class="Property Name">
                @Html.TextBox("Title", "", new { Class = "FormInput" })
                <span class="Mandatory">*</span>
            </div>
        </div>
    </div>
    <div class="ContentContainer">
    <div class="Row">
        <div class="Property">
            <div>Assigned to</div>
            <div><select  name="AssignedToID" id="AssignedTo" ></select></div>
        </div>
        <div class="Property">
            <div>Due date</div>
            <div><input type="text" name="DueDate" class="Date"/></div>
        </div>
        <div class="Property">
            <div>Importance</div>
            <div>
                @Html.DropDownList("ImportanceID", Model.Importance.Select(s => new SelectListItem { Text = s.Name, Value = s.ID.Value, Selected = s.Name == Logic.Constants.DefaultImportance }))
             </div>
        </div>
    </div>
    <div class="Row">

     <div class="Property">
            <div>Priority</div>
            <div><input type="text" name="Priority" class="Numeric"/></div>
        </div>
        

        <div class="Property">
            <div>Originated from</div>
            <div>
            <select name="OriginatedFromID" id="OriginatedFromID">
                <option value="">@Logic.Constants.DEFAULT_TASK_CONTAINER</option>
            </select></div>
        </div>

        <div class="Property Right">
            <div><input type="checkbox" id="ReportedbyCustomer" value="true" name="ReportedbyCustomer"/><label for="ReportedbyCustomer">Reprted by customer</label></div>
            <div><input type="checkbox" id="Mandatory" value="true" name="Mandatory"/><label for="Mandatory">Mandatory</label></div>
            <div><input type="checkbox" id="Regression" value="true" name="Regression"/><label for="Regression">Regression</label></div>
        </div>
    </div>
    

    <div class="Row">
        <div>Description</div>
        <textarea  id="Description" name="Description" rows="5" cols="20" ></textarea>
    </div>
    </div>
</div>